<?php /* Smarty version 2.6.19, created on 2010-10-26 15:02:21
         compiled from uc_user.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'uc_user.html', 229, false),array('modifier', 'shengri', 'uc_user.html', 229, false),array('modifier', 'number_format', 'uc_user.html', 283, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>万利达应用商城</title>
<link href="skins/stlye/globle.css" rel="stylesheet" type="text/css" />
<link href="skins/stlye/link.css" rel="stylesheet" type="text/css" />
<link href="skins/stlye/footer.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.4.1.js"></script>
<script type="text/javascript" src="js/jquery.autocomplete.js"></script>
<link rel="stylesheet" type="text/css" href="js/jquery.autocomplete.css" />
<script type="text/javascript" src="js/main.js"></script>
<style>
.jj2{
	text-align:center;
	width:85px; height:25px;  display:block; padding-top:5px; border:solid 1px #CCC; 
	 background: #FFF; color:#eb9822; font-weight:bold; border-bottom:solid 1px #FFF;
	 
	}
.jieshao
{
	text-align:center;
	width:85px; height:25px;   display:block; padding-top:5px; border:solid 1px #CCC; background:#fff8b4;
	cursor:hand;
}
input{
	height:20px;
	}
</style>
<script type="text/javascript" src="js/jquery-1.4.1.js"></script>
<script type="text/javascript" src="js/calendar.js"></script>
<script type="text/javascript">
function changpas()
{
	if($("#oldpassword").val()=="")
	{
		alert("旧密码不能为空");
		return false;
	}
		if($("#newpassword").val()=="")
	{
		alert("新密码不能为空");
		return false;
	}
		if($("#newpassword").val()!=$("#newpassword1").val())
	{
		alert("新密码前后输入不正确");
		return false;
	}
   $.post("inc/uc_user_save_inc.php",{ucpasswordchangebtn:"true",oldpassword:$("#oldpassword").val(),newpassword:$("#newpassword").val()},function(data)
	{
		 if(data.indexOf("ok")!=-1)
			 {
				 alert("密码修改成功");
			  return true;					  
                    
			 }else
			 {
				  alert(data+"旧密码输入不正确");
			  return false;	
			}
    }
	)	
  }
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

var currTIdx = null;
var currDIdx = null;
function xqmouseOver(obj,tag0,tag1,id)
{
 
if( currTIdx!=null)
{
	
							
 if(document.getElementById(currTIdx)) document.getElementById(currTIdx).className="jieshao";
 if(document.getElementById(currDIdx)) document.getElementById(currDIdx).style.display="none";	   
}	
 
var Tid = tag0 + id;
var Did = tag1 + id;
 
if(document.getElementById(Tid)) document.getElementById(Tid).className="jj2";	   
if(document.getElementById(Did)) document.getElementById(Did).style.display="block";	  
 
currTIdx = Tid;
currDIdx = Did;
 
 
}
$(document).ready(function(){
						   xqmouseOver(this,'qy','qyxq','01');
						   });
</script>
</head>

<body onload="
MM_preloadImages('skins/stlye/images/candan_04.jpg','skins/stlye/images/candan_05.jpg','skins/stlye/images/candan1_06.jpg','skins/stlye/images/candan1_07.jpg','skins/stlye/images/candan1_08.jpg','skins/stlye/images/candan1_09.jpg','skins/stlye/images/candan1_10.jpg','skins/stlye/images/candan1_11.jpg','skins/stlye/images/candan1_12.jpg','skins/stlye/images/candan1_13.jpg');xqmouseOver(this,'qy','qyxq','03')">
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "top_inc.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<table width="1004" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:3px; border:solid 1px #CCC; height:260px;">
  <tr>
    <td><img src="attaching/guanggaotu_02.jpg"/></td>
  </tr>
</table>
<table width="1004" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>您的位置：<a href="index.php">首页 </a> > <a href="index.php">用户中心 </a> &gt; 用户资料</td>
  </tr>
</table>
<table width="1004" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:3px; border-top:solid 1px #e97506; border-left:solid 1px #e97506;" >
  <tr>
    <td width="214" rowspan="3" align="left" valign="top" style=" background:#f0f0f0;"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-right:solid 1px #ff9900; border-bottom:solid 1px #ff9900; background: #FFF;">
      <tr>
        <td class="con" ><img src="skins/stlye/images/czyhb_03.gif" />用户中心</td>
      </tr>
      <tr>
        <td style=" padding:5px 5px 15px 5px ;"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'uc_left.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
      </tr>
    </table></td>
    
    <td width="3" align="left" valign="top"></td>
    <td width="787" align="left" valign="top" style="border:solid 1px #CCC;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="left" class="wenzi" style="text-align:left; padding-left:10px">用户资料</td>
      </tr>
      <tr>
        <td class="kuang" ><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="10" style="border-bottom:solid 1px #CCC;">&nbsp;</td>
            <td width="85" class="jj2" id="qy01"  onclick="xqmouseOver(this,'qy','qyxq','01')">账户资料</td>
            <td width="5" style="border-bottom:solid 1px #CCC;">&nbsp;</td>
            <td width="85" class="jieshao"  id="qy02"  onclick="xqmouseOver(this,'qy','qyxq','02')">修改密码</td>
            <td width="5" style="border-bottom:solid 1px #CCC;">&nbsp;</td>
            <td width="85" class="jieshao" id="qy03"  onclick="xqmouseOver(this,'qy','qyxq','03')">积分/余额</td>
                <td width="5" style="border-bottom:solid 1px #CCC;">&nbsp;</td>
            <td width="85" class="jieshao" id="qy04"  onclick="xqmouseOver(this,'qy','qyxq','04')">登录日志</td>
            <td   style="border-bottom:solid 1px #CCC;">&nbsp;</td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td height="400" colspan="7" valign="top" style="padding:10px">        <span id="qyxq01" style="o; " ><form action="inc/uc_user_save_inc.php" method="post"><table width="98%" height="342" border="0" align="center" cellpadding="2" cellspacing="4" class="border">
              <tr bgcolor="#FFFFFF">
                <td width="15%" bgcolor="#FFFFFF" ><div align="right">用户账户：</div></td>
                <td width="35%" bgcolor="#FFFFFF"><?php echo $this->_tpl_vars['myrs']['userid']; ?>

     （<?php echo $this->_tpl_vars['myrs']['classname']; ?>
）&nbsp;
                  <input id="Sex1" type="radio" name="sex" value="0" <?php if ($this->_tpl_vars['myrs']['sex'] == '0'): ?>checked="checked"<?php endif; ?> />
                  <label for="Sex1">男</label>
                  <input id="Sex2" type="radio" name="sex" value="1" <?php if ($this->_tpl_vars['myrs']['sex'] == '1'): ?>checked="checked"<?php endif; ?>/>
                  <label for="Sex2">女</label></td>
                <td width="50%"   >登录账号，此账号具有唯一性，不可修改</td>
              </tr>
              <!--   <tr bgcolor="#FFFFFF">
        <td ><div align="right"><strong>权限组：</strong></div></td>
        <td><select name="quanxian" id="quanxian" <?php echo '<?php'; ?>

		echo  $lp->getpowera("member_power","disabled")
		<?php echo '?>'; ?>
>
            <option value="" > 继承级别 </option>
            <?php echo '<?php'; ?>
 
		  $dbs->depth=0;
	      //
		  $dbs->getchild("power_class",0,trim($myrs['quanxian']),"ID","&nbsp;&nbsp;","");<?php echo '?>'; ?>

        </select></td>
        <td >&nbsp;</td>
      </tr>-->
              <tr bgcolor="#FFFFFF">
                <td bgcolor="#FFFFFF" ><div align="right">真实姓名：</div></td>
                <td bgcolor="#FFFFFF"><input name="username" type="text" id="username" value="<?php echo $this->_tpl_vars['myrs']['username']; ?>
" size="50" /></td>
                <td ><span class="red"></span> <span class="gray">真实姓名，请务必填写真实姓名，这将作为判断你真实身份的依据</span></td>
              </tr>
              <tr bgcolor="#FFFFFF">
                <td bgcolor="#FFFFFF" ><div align="right">Email：</div></td>
                <td bgcolor="#FFFFFF"><input name="email" type="text" id="email" value="<?php echo $this->_tpl_vars['myrs']['email']; ?>
" size="50" /></td>
                <td ><span class="red"></span> <span class="gray">您的电子邮件，这是与您在网络最常用的沟通工具</span></td>
              </tr>
              <tr bgcolor="#FFFFFF">
                <td ><div align="right">手机：</div></td>
                <td><input name="shouji" type="text" id="shouji" value="<?php echo $this->_tpl_vars['myrs']['shouji']; ?>
" size="50" /></td>
                <td ><span class="red"></span> <span class="gray">您的手机号码，这是与您主要的联系工具</span></td>
              </tr>
              <tr bgcolor="#FFFFFF">
                <td bgcolor="#FFFFFF" ><div align="right">电话：</div></td>
                <td bgcolor="#FFFFFF"><input name="tel" type="text" id="tel" value="<?php echo $this->_tpl_vars['myrs']['tel']; ?>
" size="50" /></td>
                <td ><span class="red"></span> <span class="gray">家庭，单位固定电话等等</span></td>
              </tr>
              <tr bgcolor="#FFFFFF">
                <td ><div align="right">传真：</div></td>
                <td><input name="fax" type="text" id="fax" value="<?php echo $this->_tpl_vars['myrs']['fax']; ?>
" size="50" /></td>
                <td >如果有，请填写</td>
              </tr>
              <tr bgcolor="#FFFFFF">
                <td ><div align="right">联系地址：</div></td>
                <td><input name="dizhi" type="text" id="dizhi" value="<?php echo $this->_tpl_vars['myrs']['dizhi']; ?>
" size="50" /></td>
                <td ><span class="red"></span> <span class="gray">您目前所在的住址</span></td>
              </tr>
              <tr bgcolor="#FFFFFF">
                <td ><div align="right">邮政编码：</div></td>
                <td><input name="youbian" type="text" id="youbian" value="<?php echo $this->_tpl_vars['myrs']['youbian']; ?>
" size="50" /></td>
                <td ><span class="red"></span>您所在地邮编</td>
              </tr>
              <tr bgcolor="#FFFFFF">
                <td ><div align="right">出生日期：</div></td>
                <td><input name="shengri" type="text" id="shengri" onfocus="javascript:calendar()" value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['myrs']['shengri'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d') : smarty_modifier_date_format($_tmp, '%Y-%m-%d')))) ? $this->_run_mod_handler('shengri', true, $_tmp) : smarty_modifier_shengri($_tmp)); ?>
" size="50"/>
                  <input name="chengshi" type="hidden" id="chengshi" value=" 0" />
                  <input name="shenfen" type="hidden" id="shenfen" value="0" /></td>
                <td ><span class="red"></span> <span class="gray">如果填写，我们会定期给您惊喜</span></td>
              </tr>
              <tr bgcolor="#FFFFFF">
                <td ><div align="right">MSN：</div></td>
                <td><input name="msn" type="text" id="msn" value="<?php echo $this->_tpl_vars['myrs']['msn']; ?>
" size="50" /></td>
                <td ><span class="red"></span> <span class="gray">MSN在线即时聊天工具，以更方便我们联络您</span></td>
              </tr>
              <tr bgcolor="#FFFFFF">
                <td ><div align="right">QQ：</div></td>
                <td><input name="qq" type="text" id="qq" value="<?php echo $this->_tpl_vars['myrs']['qq']; ?>
" size="50" /></td>
                <td ><span class="red"></span> <span class="gray">腾讯QQ在线即时聊天工具，以更方便我们联络您</span></td>
              </tr>
              <tr bgcolor="#FFFFFF">
                <td ><div align="right">个人主页：</div></td>
                <td><input name="web" type="text" id="web" value="<?php echo $this->_tpl_vars['myrs']['web']; ?>
" size="50" /></td>
                <td ><span class="red"></span> <span class="gray">如果有，不妨填写，以便我们更加了解您</span></td>
              </tr>
            </table>    <table width="388" border="0" align="center">
			                              <tr>
			                                <td><input type="submit" name="ucuserbtn" id="ucuserbtn" value="  保存修改  "  style="height:28px"/>
		                                    <input name="gourl" type="hidden" id="gourl" value="../uc_user.php" /></td>
			                                </tr>
			                              </table>  <br></form></span><span id="qyxq02" style="display:none;"><table width="100%" border="0" cellspacing="4" cellpadding="2">
									        <tr>
									          <td width="22%" align="right">旧密码：</td>
									          <td width="23%"><input name="oldpassword" type="password" id="oldpassword" size="30" /></td>
									          <td width="55%" align="left">您之前使用的登录密码</td>
									          </tr>
									        <tr>
									          <td align="right">新密码：</td>
									          <td><input name="newpassword" type="password" id="newpassword" size="30" /></td>
									          <td align="left">输入您要修改的密码</td>
									          </tr>
									        <tr>
									          <td align="right">重新输入一次：</td>
									          <td><input name="newpassword1" type="password" id="newpassword1" size="30" /></td>
									          <td align="left">再一次输入您的新密码</td>
									          </tr>
									        <tr>
									          <td colspan="3" align="center" valign="middle"><table width="394" border="0" align="center">
									            <tr>
									              <td width="440" align="left"><input type="submit" name="ucpasswordchangebtn" id="ucpasswordchangebtn" value="  保存修改  "  style="height:28px" onclick="changpas()"/></td>
								                </tr>
								              </table></td>
									          </tr>
									        </table></span>
									      
									      <span id="qyxq03" style="display:none;"><br />
									      <table width="617" border="0" align="center" cellpadding="4" cellspacing="4" style="font-size:14px">
  <tr>
    <td width="110" align="right">您的账户余额：</td>
    <td width="120" style="color:#900"><?php echo ((is_array($_tmp=$this->_tpl_vars['myrs']['tjinqian'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : number_format($_tmp, 2)); ?>
 Z币</td>
    <td width="347">已经消费：<span style="color:#900"><?php echo ((is_array($_tmp=$this->_tpl_vars['myrs']['xjinqian'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : number_format($_tmp, 2)); ?>
</span> Z币</td>
  </tr>
  <tr>
    <td align="right" width="110">累积积分共：</td>
    <td><?php echo $this->_tpl_vars['myrs']['tjifen']; ?>
</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td height="60" colspan="3" align="left" style="padding-left:100px"><strong style="display: "><a href="pay.php" style="text-decoration:underline; color:#009">点击这里进入充值中心充值>></a></strong></td>
    </tr>
</table>
</span>
			                            
                  <span id="qyxq04" style="display:none;">
                  <table width="80%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
                    <tr>
                      <td width="8%" align="center" bgcolor="#F7F7F7">序号</td>
                      <td width="50%" align="center" bgcolor="#F7F7F7">登录时间</td>
                      <td width="42%" align="center" bgcolor="#F7F7F7">登录IP</td>
                      </tr>
                      <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['iprs']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
                    <tr>
                      <td align="center" bgcolor="#FFFFFF"><?php echo $this->_sections['i']['rownum']; ?>
</td>
                      <td align="center" bgcolor="#FFFFFF"><?php echo $this->_tpl_vars['iprs'][$this->_sections['i']['index']]['createtime']; ?>
</td>
                      <td align="center" bgcolor="#FFFFFF"><?php echo $this->_tpl_vars['iprs'][$this->_sections['i']['index']]['ip']; ?>
</td>
                      </tr>
                      <?php endfor; endif; ?>
                  </table>
                  </span></td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
     
    </table></td>
  </tr>
</table>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "foot_inc.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</body>
</html>